package com.xique.door.bean.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author shd
 * @create 2022/3/8 18:40
 */
@Data
@TableName(value = "d_building")
public class BuildBuildingV1 {

    /** id */
    @TableId(value = "id",type = IdType.AUTO)//指定自增策略
    private Long id;

    /** 车场id */
    @Excel(name = "车场id")
    private Long parkId;

    /** 区域id */
    @Excel(name = "区域id")
    private Long areaId;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 楼栋名称 */
    @Excel(name = "楼栋名称")
    private String buildingName;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 状态（normal启用 pause禁用） */
    @Excel(name = "状态", readConverterExp = "normal=启用,pause=禁用")
    private String status;

    /** 删除状态(0正常 1已删除) */
    @Excel(name = "删除状态", readConverterExp = "0=正常,1=已删除")
    private String delFlag;

    /** 总楼层 */
    @Excel(name = "总楼层")
    private Integer floorNumber;

    /** 每楼房屋数 */
    @Excel(name = "每楼房屋数")
    private Integer houseNumber;

    /** 建筑年代 */
    @Excel(name = "建筑年代")
    private String buildAge;

    /** 产权性质 */
    @Excel(name = "产权性质")
    private Integer property;

    /** 有无电梯（0：无，1：有） */
    @Excel(name = "有无电梯", readConverterExp = "0=无，,1=有")
    private Integer hasElevator;

    @ApiModelProperty(name = "建筑物类型")
    private String buildingType;

    @ApiModelProperty(name = "房屋用途")
    private String buildingPurpose;

    @ApiModelProperty(name = "建筑面积")
    private String buildArea;

    @ApiModelProperty(name = "几单元")
    private String unitCode;

    @ApiModelProperty(name = "几栋")
    private String buildingCode;

    @ApiModelProperty(name = "地下层数")
    private Integer undergroundFloorNum;

    /** 楼栋图片 */
    private String pic;

    /** 创建人 */
    private Long createBy;

    /** 更新人 */
    private Long updateBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String communityUuid;

    private String  remark;

}
